package com.hisense.proxy.service.test.unuploadApi.other;

import com.hisense.proxy.service.crypto.SignHelper;
import com.hisense.proxy.service.entity.unupload.other.WecheatDockingBuildParam;
import com.hisense.proxy.service.utils.HttpClientUtil;
import com.hisense.proxy.service.utils.URLConfigEnum;

import java.util.Map;

/**
 * @author wrk
 * @date 2021/5/26 10:46
 * 企业微信对接接口
 */
public class WecheatDocking {
    public static void main(String[] args) throws Exception {
        String result="";
        result=userinfo("yyy","241321", SignHelper.sign());
        System.out.println(result);
    }

    private static String userinfo(String code,String ts,String sign) throws Exception {
        Map paramsMap = WecheatDockingBuildParam.userinfo();
        return HttpClientUtil.get(URLConfigEnum.WXUSERINFO.getUrl()+"&code="+code+"&ts="+ts+"&sign="+sign);
    }
}
